package com.bgrconsulting.stockorderentry.service.dao;

import java.util.HashMap;
import java.util.Map;

import com.bgrconsulting.stockorderentry.service.converter.response.PlaceEquityOrderResponseConverter;
import com.bgrconsulting.stockorderentry.service.model.response.PlaceEquityOrderResponse;

public enum PlaceEquityOrderResponseDao {
	instance;
	
    
	private HashMap<String, PlaceEquityOrderResponseConverter> contentProvider = new HashMap<String, PlaceEquityOrderResponseConverter>();
	
	private PlaceEquityOrderResponseDao() {
		
	}
	
	private PlaceEquityOrderResponseDao(PlaceEquityOrderResponse placeEquityOrderResponse) {
		
		PlaceEquityOrderResponseConverter placeEquityOrderResponseConverter = new PlaceEquityOrderResponseConverter(placeEquityOrderResponse);
	
		contentProvider.put(placeEquityOrderResponse.getEquityOrderResponse().getAccountId(), placeEquityOrderResponseConverter);
		
	}
	
	public Map<String, PlaceEquityOrderResponseConverter> getModel(){
		return contentProvider;
	}

}
